<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="{$appConfigs[member_title]}">
    <title>个人信息-实名认证</title>
    {run $pageName='person'}
    {include member.inc.csslink}
</head>
<body>
{include member.inc.header}
<main class="max-w">
    <div class="breadcrumb">您现在的位置：<a href="/member/member/index">个人信息</a> > 实名认证</div>
    {include member.inc.leftNav}
    <div class="main">
        {if $check_note}
        <div class="warning-bar">
            <img src="/res/mpe/img/blank.gif">{run echo "审核不通过,不通过原因：".$check_note}
        </div>
        {/if}
        <section class="person person_aptitude panel">
            <div class="header"><h1>实名认证</h1></div>
            <form class="clearfix form-block" id="form1" onsubmit="return false;">
                <div class="title">企业信息</div>
                <dl>
                    <dt><span class="asterisk">*</span>公司名称</dt>
                    <dd><input class="form-control" type="text" value="{$companyInfo[company]}" name="data[company]" maxlength="20"></dd>
                    <dt><span class="asterisk">*</span>地址</dt>
                    <dd class="content address">
                        <div class="area-wrap"></div>
                    </dd>
                    <dt>详细地址</dt>
                    <dd><input class="form-control" type="text" name="data[address]" value="{$companyInfo[address]}" maxlength="20" /></dd>
                    <dt>邮政编码</dt>
                    <dd><input class="form-control" type="text" value="{$companyInfo[zipcode]}" name="data[zipcode]" maxlength="6"></dd>
                    <dt>注册资金</dt>
                    <dd>
                        <input class="form-control" type="text" value="{$companyInfo[register_capital]}" name="data[register_capital]" maxlength="20">
                        <span class="tail">万元</span>
                    </dd>
                    <dt><span class="asterisk">*</span>企业类别</dt>
                    <dd class="radio-wrap">
                        <input type="radio"  value="1" id="yield" name="data[type]" {if $companyInfo[type]=="1" || $signInfo[type]==""}checked="checked"{/if}>
                        <label for="yield">原料生产企业</label>
                        <input type="radio"  value="2" id="trade" name="data[type]" {if $companyInfo[type]=="2"}checked="checked"{/if}><label for="trade">原料代理/贸易商家</label>
                        <input type="radio"  value="3" id="plant" required="true" name="data[type]" {if $companyInfo[type]=="3"}checked="checked"{/if}><label for="plant">下游生产工厂</label>
                    </dd>
                    <dt><span class="asterisk">*</span>主营行业</dt>
                    <dd class="checkbox-wrap">
                        {loop $types $value}
                        <input  id="check{$value[id]}" type="checkbox" class="icheck" name="main_business[]" value="{$value[id]}" {if in_array($value[id],$companyInfo[main_business])}checked{/if}>
                        <label class="check_box" for="check{$value[id]}">
                            {$value[name]}
                        </label>
                        {/loop}
                    </dd>
                </dl>
                <div class="title">资质认证</div>
                <dl>
                    <dt><span class="asterisk">*</span>法定代表人</dt>
                    <dd><input class="form-control" type="text" value="{$companyInfo[legal_person]}" name="data[legal_person]" required="true"></dd>
                    <dt><span class="asterisk">*</span>法定代表人手机</dt>
                    <dd><input class="form-control" type="text" value="{$companyInfo[mobile]}" name="data[mobile]" ></dd>
                    <dt><span class="asterisk">*</span>法人身份证</dt>
                    <dd>
                        <div><input class="form-control" type="text" value="{$companyInfo[idcard_no]}" name="data[idcard_no]" required="true" ></div>
                        <div class="file-contain">
                            <div class="fileWrap {$companyInfo[idcard_positive] != ''? 'active':''}">

                                <div class="fileUpload">
                                    <input type="hidden" data-id="imgInput" id="idCardFrontImg" name="data[idcard_positive]"  value="{$companyInfo[idcard_positive]}"/>
                                    <input class="fileBar" id="idCardFront" name="src" type="file" accept="image/gif, image/jpeg, image/jpg, image/png, image/bmp" />
                                    <div class="btn_file" >
                                        <div class="icon_add"><i></i></div>
                                        <p>身份证正面</p>
                                    </div>
                                </div>
                                <div class="uploaded">
                                    <a class="btn_re" data-act="reUpload" href="javascript:;">删除重新上传</a>
                                    <p class="img" data-act="big"><img src="{$companyInfo[idcard_positive]}"/></p>
                                </div>
                            </div>
                            <div class="fileWrap {$companyInfo[idcard_opposite] != ''? 'active':''}">

                                <div class="fileUpload">
                                    <input type="hidden" data-id="imgInput" id="idCardBacktImg" name="data[idcard_opposite]" value="{$companyInfo[idcard_opposite]}" />
                                    <input class="fileBar" id="idCardBack" name="src" type="file" accept="image/gif, image/jpeg, image/jpg, image/png, image/bmp" />
                                    <div class="btn_file" >
                                        <div class="icon_add"><i></i></div>
                                        <p>身份证背面</p>
                                    </div>
                                </div>
                                <div class="uploaded">
                                    <a class="btn_re" data-act="reUpload" href="javascript:;">删除重新上传</a>
                                    <p class="img" data-act="big"><img src="{$companyInfo[idcard_opposite]}"/></p>
                                </div>
                            </div>
                        </div>
                    </dd>
                    <dt><span class="asterisk">*</span>证书</dt>
                    <dd class="radio-wrap radio-aptitude">
                        <input id="cert" type="radio" name="data[three_in_one]" value="0" {if $companyInfo[three_in_one] == "0" || $companyInfo[three_in_one] == ""}checked="checked"{/if}>
                        <label for="cert">
                            企业三证
                        </label>
                        <input id="cert1" type="radio" name="data[three_in_one]" value="1" {if $companyInfo[three_in_one] == "1"}checked="checked"{/if}>
                        <label for="cert1">
                            三证合一
                        </label>
                    </dd>
                    <dt><span class="asterisk">*</span>营业执照</dt>
                    <dd>
                        <div><input class="form-control" type="text" value="{$companyInfo[license]}" name="data[license]" required="true"></div>
                        <div class="file-contain">
                        <div class="fileWrap {$companyInfo[license_pic] != ''? 'active':''}" >
                            <div class="fileUpload">
                                <input type="hidden" data-id="imgInput" name="data[license_pic]" value="{$companyInfo[license_pic]}"/>
                                <input class="fileBar" id="licenceImg" name="src" type="file" accept="image/gif, image/jpeg, image/jpg, image/png, image/bmp" />
                                <div class="btn_file" >
                                    <div class="icon_add"><i></i></div>
                                    <p>营业执照图片</p>
                                </div>
                            </div>
                            <div class="uploaded">
                                <a class="btn_re" data-act="reUpload" href="javascript:;">删除重新上传</a>
                                <p class="img" data-act="big"><img src="{$companyInfo[license_pic]}"/></p>
                            </div>
                        </div>
                        </div>
                    </dd>
                </dl>
                <dl class="row_none {if $companyInfo['three_in_one'] === '1'}none{/if}">
                    <dt><span class="asterisk">*</span>税务登记证</dt>
                    <dd>
                        <div><input class="form-control" type="text" value="{$companyInfo[taxno]}" name="data[taxno]" required="true" ></div>
                        <div class="file-contain">
                        <div class="fileWrap {$companyInfo[taxno_pic] != ''? 'active':''}">
                            <div class="fileUpload">
                                <input type="hidden" data-id="imgInput" name="data[taxno_pic]" value="{$companyInfo[taxno_pic]}"  />
                                <input class="fileBar" id="certImg" name="src" type="file" accept="image/gif, image/jpeg, image/jpg, image/png, image/bmp" />
                                <div class="btn_file" >
                                    <div class="icon_add"><i></i></div>
                                    <p>税务登记图片</p>
                                </div>
                            </div>
                            <div class="uploaded">
                                <a class="btn_re" data-act="reUpload" href="javascript:;">删除重新上传</a>
                                <p class="img" data-act="big"><img src="{$companyInfo[taxno_pic]}"/></p>
                            </div>
                        </div>
                        </div>
                    </dd>
                    <dt><span class="asterisk">*</span>组织机构代码证</dt>
                    <dd>
                        <div><input class="form-control" type="text" value="{$companyInfo[orgcode]}" name="data[orgcode]" required="true"></div>
                        <div class="file-contain">
                            <div class="fileWrap {$companyInfo[orgcode_pic] != ''? 'active':''}">
                            <div class="fileUpload">
                                <input type="hidden" data-id="imgInput" name="data[orgcode_pic]" value="{$companyInfo[orgcode_pic]}" />
                                <input class="fileBar" id="orgImg" name="src" type="file" accept="image/gif, image/jpeg, image/jpg, image/png, image/bmp" />
                                <div class="btn_file" >
                                    <div class="icon_add"><i></i></div>
                                    <p>组织机构代码证图片</p>
                                </div>
                            </div>
                            <div class="uploaded">
                                <a class="btn_re" data-act="reUpload" href="javascript:;">删除重新上传</a>
                                <p class="img" data-act="big"><img src="{$companyInfo[taxno_pic]}"/></p>
                            </div>
                        </div>
                        </div>
                    </dd>
                  
                </dl>
                <dl>
                  <dd class="bottom-btn">
                        <input type="submit" class="btn-primary"  value="申请认证"/>
                    </dd>
                </dl>
            </form>
        </section>
    </div>
</main>

{include member.inc.footer}
{include member.inc.script}

<script>
   // seajs.use('common')
   seajs.use('person_com',function(person){
      person.area={
          prov : "{$companyInfo['prov']?$companyInfo['prov']:0}", //省
          city : "{$companyInfo['city']?$companyInfo['city']:0}", //市
          dist : "{$companyInfo['dist']?$companyInfo['dist']:0}"
      };
      
      person.aptitudeInit();

   });
   
</script>
{include member.inc.foot_hook}
</body>
</html>
